{extend name="platform/base" /}
{block name="resources"/}
<!-- 选择商品图，弹出框的样式 -->
<link rel="stylesheet" type="text/css" href="ADMIN_CSS/defau.css">
<!-- 用 ，加载数据-->
<script src="ADMIN_JS/art_dialog.source.js"></script>
<script src="ADMIN_JS/iframe_tools.source.js"></script>
<!-- 我的图片 -->
<script src="ADMIN_JS/material_managedialog.js"></script>
<style>
	.img{
		float:left;
		padding-left: 30px;
    	padding-top: 20px;
	}
	div.col-xs-3{
		cursor:pointer;
	}
</style>
{/block}
{block name="main"}
            <div class="row">
              <div class="col-md-12">
                <section class="panel panel-default">
                  <header class="panel-heading font-bold">平台统计</header>
                  <footer class="panel-footer bg-white no-padder">
                    <div class="row text-center no-gutter">
                      <div class="col-xs-3 b-r b-light" onclick="openPlatformTotalAccountList();"><img src="PLATFORM_IMG/platform1.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.order_all_money)}</span> <small class="text-muted m-b block">订单总计</small> </div>
                      <div class="col-xs-3 b-r b-light" onclick="openPlatformBalanceAccountList();"><img src="PLATFORM_IMG/platform2.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.shop_wait_proceeds)}</span> <small class="text-muted m-b block">店铺待结算订单</small> </div>
                      <div class="col-xs-3 b-r b-light" onclick="openPlatformReturnAccountList();"><img src="PLATFORM_IMG/platform3.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.account_return)}</span> <small class="text-muted m-b block">平台利润总额</small> </div>
                      <div class="col-xs-3" onclick="OpenPlatformWaitProfitRecord()"><img src="PLATFORM_IMG/platform4.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.platform_wait_money)}</span> <small class="text-muted m-b block">待结算利润</small> </div>
                    </div>
                  </footer>
                   <footer class="panel-footer bg-white no-padder">
                    <div class="row text-center no-gutter">
                      <div class="col-xs-3 b-r b-light" onclick="openPlatformOrderAccountList();"><img src="PLATFORM_IMG/platform5.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.shop_all_return)}</span> <small class="text-muted m-b block">店铺收入（已结算）</small> </div>
                       <div class="col-xs-3 b-r b-light" onclick="openPlatformWithdrawAccountList();"><img src="PLATFORM_IMG/platform8.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.shop_all_withdraw)}</span> <small class="text-muted m-b block">店铺总提现</small> </div>
                      
                      <div class="col-xs-3 b-r b-light" onclick="openPlatformProceedsAccountList();"><img src="PLATFORM_IMG/platform7.png" class="img"> <span class="h4 font-bold m-t block">{:sprintf("%.2f", $AccountCount.shop_wait_return)}</span> <small class="text-muted m-b block">店铺收入（待审核）</small> </div>
                      
                    </div>
                  </footer>
                  <header class="panel-heading font-bold">会员统计</header>
                  <footer class="panel-footer bg-white no-padder">
                    <div class="row text-center no-gutter">
                      <div class="col-xs-3 b-r b-light" onclick="openPlatformPointAccountList()"><img src="PLATFORM_IMG/platform6.png" class="img"> <span class="h4 font-bold m-t block">{$integral_count|round}</span> <small class="text-muted m-b block">会员积分</small> </div>
                    </div>
                  </footer>
                </section>
              </div>
            </div>

			

{/block}
{block name="script"}            
<script src="__STATIC__/js/highcharts.js"></script>
<script src="__STATIC__/js/exporting.js"></script>           
<script>

/**
 * 弹出平台总营业额明细
 */
 function openPlatformTotalAccountList(){
	OpenPlatformAccountTotalRecordDialog(PLATFROMMAIN);
}

/**
 * 弹出平台资金总余额明细
 */
 function openPlatformBalanceAccountList(){
	 OpenPlatformAccountBalanceRecordDialog(PLATFROMMAIN);
}
 
/**
 * 弹出商城订单总额明细
 */
 function openPlatformOrderAccountList(){
	 OpenPlatformAccountOrderRecordDialog(PLATFROMMAIN);
}

/**
 * 弹出平台利润总额明细
 */
 function openPlatformReturnAccountList(){
	 OpenPlatformAccountReturnRecordDialog(PLATFROMMAIN);
}

/**
 * 弹出店铺总余额明细
 */
 function openPlatformProceedsAccountList(){
	 OpenPlatformAccountProceedsRecordDialog(PLATFROMMAIN);
}

/**
 * 弹出店铺总提现明细
 */
 function openPlatformWithdrawAccountList(){
	 OpenPlatformAccountWithdrawRecordDialog(PLATFROMMAIN);
}

 /**
  * 弹出平台总积分 明细
  */
  function openPlatformPointAccountList(){
	 OpenMemberAccountIntegralRecordDialog(PLATFROMMAIN);
 }

 function OpenPlatformWaitProfitRecord(){
    OpenPlatformWaitProfitRecordDialog(PLATFROMMAIN);
 }
</script>
{/block}

